﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ConfigurationFactory;
using DataCom;
using LineWatch.Common;

namespace DBAccessLib
{
    public abstract class Account
    {
        public static bool SignedIn(string userName, string password, ref bool canSetShift, ref bool hasRight)
        {
            IUserAccess dataAccess = DataCommunicationFactory.GetUserDataAccess();
            return dataAccess.Login(userName, password, ref canSetShift, ref hasRight);
        }

        public static UserAndLineCodeModel GetUserAndLineCode(string userName)
        {
            IUserAccess dataAccess = DataCommunicationFactory.GetUserDataAccess();
            return dataAccess.GetUserAndLineCode(userName);
        }
    }
}
